<template>
	
	<view class="container">
		<view class="pwd">
			请输入你的密码
		<input class="uni-input" @input='changeValue' focus v-model='pwd' placeholder="请输入您的密码" />
		</view>
		<button @click="submitFun">确定</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pwd:''
			};
		},
		methods:{
			changeValue(e){
				this.pwd=e.target.value
				console.log(e.target.value);
			},
			submitFun(){
				console.log(this.pwd);
			}
		}
	}
</script>

<style lang="less">
.pwd{
	width: 98%;
	height: 100rpx;
	margin-left: 2%;
	display: flex;
	align-items: center;
	input{
		margin-left: 20rpx;
	}
}
</style>
